#!/bin/bash
#description configuration rsync client
#install rsync software
yum -y install rsync &>/dev/null
#configure rsync client
Passwd="Aa123456"
PasswdFile=/etc/rsyncd.passwd
echo "$Passwd" > $PasswdFile
chmod 600 $PasswdFile
#push 
#rsync -avz /data1/ rsync_backup@10.100.100.107::backup --password-file=/etc/rsyncd.passwd
#pull
#rsync -avz  rsync_backup@10.100.100.107::backup /data --password-file=/etc/rsyncd.passwd
